package thread2;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:34398
 * Date:2024-07-01
 * Time:22:33
 */



/*Runnable是一个接口，所以要用implements*/
class MyThread implements Runnable{


    @Override
    public void run(){
        while(true){
            System.out.println("进程字创建");
        }
    }
}

public class Runnablee {

    public static void main(String[] args) {
        MyThread runnable=new MyThread();
        Thread t=new Thread(runnable);

    }
}
